
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>7min后台管理系统</title>
    <script type="text/javascript" src="__ROOT__/js/jquery.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#btnSearchShow").click(function () {
                $("#btnSearch").click();
            });
        });
		
		

		
    
    </script>
    <link rel="stylesheet" type="text/css" href="__ROOT__/res-admin/css/bootstrap-fileupload.css">
</head>
<body>
<form action="__SELF__" method="post" enctype="multipart/form-data"> 

<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
    theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script>


<script type="text/javascript" src="__ROOT__/ueditor/ueditor.config.js"></script>  
<script type="text/javascript" src="__ROOT__/ueditor/ueditor.all.min.js"></script> 

<div class="aspNetHidden">

	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWJwKXjOurDQKQkKHZAgKckO3aAgKdkO3aAgKDkO3aAgL55JyzBAKToJ2RDwKp87aZCAKln/PuCgLvg/riDgK27t34BQKs7s3FCgKQ2ZyIBALxldjIBQLnlciVCgL1l7UEAqzYu7YKAqLYq4MPAv7OgYUNAq/7sawIAqX7ofkMAuONmoEJAuq9lZoNAuC9hecBAtSnqcEFAoWMypECAvuLut4GArnmwb0BAsDOrf8GArbOncwLAuL205YJAsPxo/UEArnxk8IJAse17JIFAv6zh+MJAvSz968OAorF5cYCAvur/moC8avutwUQ11Hi6xGaKAMQ+z5Aa9bgHciU+grYy9kz4iHj9x2CMQ==" />
</div>
  <!--顶部+导航开始-->
<include file="./top" />
  <!--顶部+导航结束-->
    
  <!--内容开始-->
<div id="content">		
    <!--项目大标题-->
    <div id="content-header">
        <h1>发布新闻</h1>
    </div>
    <!--主体内容区域开始-->
    <div id="content-container">
        <div class="row">
            <!--选项卡导航开始-->
            <div class="col-md-12">
                <ul class="nav nav-tabs">
                    <li class="">
                        <a href="__URL__/knowledge_lst">知识列表</a>
                    </li>
                    <li class="active">
                        <a href="#">添加文章</a>
                    </li>

                </ul>
            </div>
            <!--选项卡导航结束-->
            <!--主体内容开始-->
            <div class="col-md-12">                	
                <div class="dataTables_wrapper" role="grid">                        
                    <!--查询表单开始-->
                    <div class="row dt-rt pricing-plan promoted" style="width:98%;margin:auto;display:block;padding:15px 35px 10px 0;">
                        <div class="col-sm-12 form-group">
                            <label class="col-md-1">类别</label>
                            <div class="col-md-3">
                                <table id="rbsort" name="rbsort">
	<tr>
		<td><span class="radioItem"><input id="rbsort_0" type="radio" name="rbsort" value="1" checked="checked" /><label for="rbsort_0">普通</label></span></td><td><span class="radioItem"><input id="rbsort_1" type="radio" name="rbsort" value="2" /><label for="rbsort_1">视频</label></span></td>
	</tr>
</table>
                            </div>
                        </div>
                        <div class="col-sm-12 form-group">
                            <label class="col-md-1">大类</label>
                            <div class="col-md-3">
                                <select name="ddltype" id="ddltype" name="ddltype" class="form-control">
                                    <?php foreach($type as $k => $v){?>
                                        <option value="<?php echo $v['id'];?>"><?php echo $v['typename'];?></option>
                                    <?php }?>
                                    
                                </select>
                            </div>
                        </div>
                        <div class="col-sm-12 form-group">
                            <label class="col-md-1">标题</label>
                            <div class="col-md-6">
                                <input name="txttitle" type="text" id="txttitle" class="form-control" />
                            </div>
                        </div>
                        <div class="col-sm-12 form-group">
                            <label class="col-md-1">简介</label>
                            <div class="col-md-6">
                                <input name="txtsummary" type="text" id="txtsummary" class="form-control" />
                            </div>
                        </div>
                        <div class="col-sm-12 form-group">
                            <label class="col-md-1">添加人</label>
                            <div class="col-md-6">
                                <input name="txtperson" type="text" id="txtperson" class="form-control" />
                            </div>
                        </div>                     

                        <div class="col-sm-12 form-group">
                            <label class="col-md-1">排序</label>
                            <div class="col-md-3">
                                <input name="txtorder" type="text" id="txtorder" class="form-control" />
                            </div>
                        </div>
                        <div class="col-sm-12 form-group">
                                <label class="col-md-1">
                                    上传封面</label>
                                <div data-provides="fileupload" class="col-md-11 fileupload fileupload-new">
                                        <input type="hidden" value="" name="" onchange="inputFileOnChange();">
                                    <div class="fileupload-new">
                                        <img id="imghead" alt="" src="" />
                                    </div>
                                    <div style="max-width: 400px; max-height: 400px; line-height: 10px;" class="fileupload-preview fileupload-exists thumbnail">
                                    </div>
                                    <div>
									    <span class="btn btn-default btn-file btn-secondary"><span class="fileupload-new"><i class="fa fa-picture-o"></i> 选择图片(宽780px，高300px)</span>
                                        <span class="fileupload-exists"><i class="fa fa-picture-o"></i> 重新选择</span> 
                                        <input type="file" name="FileUpload1" id="FileUpload1" /></span>
									    <a data-dismiss="fileupload" class="btn btn-default fileupload-exists btn-success" href="#"><i class="fa fa-trash-o"></i> 移除选择</a>
									</div>
                                </div>
                        </div>
                        <div class="col-sm-12 form-group">
                            <label class="col-md-1">知识内容</label>
                            <div class="col-md-11">
<textarea id="myEditor" name="content" style="height:500px;">  
</textarea>  
<script type="text/javascript">  
    UE.getEditor('myEditor');
    toolbars:[ 
            ['fullscreen', 'source', '|', 'undo', 'redo', '|', 
                'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|', 
                'rowspacingtop', 'rowspacingbottom', 'lineheight', '|', 
                'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|', 
                'directionalityltr', 'directionalityrtl', 'indent', '|', 
                'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|', 
                'link', 'unlink', 'anchor', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|', 
                'insertimage', 'emotion', 'scrawl', 'insertvideo', 'music', 'attachment', 'map', 'gmap', 'insertframe','insertcode', 'webapp', 'pagebreak', 'template', 'background', '|', 
                'horizontal', 'date', 'time', 'spechars', 'snapscreen', 'wordimage', '|', 
                'inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol', 'mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols', '|', 
                'print', 'preview', 'searchreplace', 'help'] 
        ]   
</script> 

                            </div>
                        </div>
                        <div class="col-sm-12 form-group">
                            <label class="col-md-1"></label>
                            <div class="col-md-11">
                                
                                <input type="submit" name="btnSave" value="保 存" id="btnSave" class="btn btn-primary" />
                            </div>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <!--查询表单结束-->
                </div>
            </div>
            <!--主体内容结束-->
        </div>
    </div>
    <!--主体内容区域结束-->
</div>
<!--内容结束-->  
  
    <!--底部信息开始-->
<include file="./foot" />


    <!--底部信息结束-->
    </form>
    <script src="__ROOT__/res-admin/js/bootstrap-fileupload.js"></script>
</body>
</html>
